import request from '@/utils/request'

// 查询每天每列统计列表
export function listRowData(query) {
  return request({
    url: '/coal/rowData/list',
    method: 'get',
    params: query
  })
}

// 查询每天每列统计列表
export function allListRowData(query) {
  return request({
    url: '/coal/rowData/allList',
    method: 'get',
    params: query
  })
}

// 查询每天每列统计详细
export function getRowData(id) {
  return request({
    url: '/coal/rowData/' + id,
    method: 'get'
  })
}

// 新增每天每列统计
export function addRowData(data) {
  return request({
    url: '/coal/rowData',
    method: 'post',
    data: data
  })
}

// 修改每天每列统计
export function updateRowData(data) {
  return request({
    url: '/coal/rowData',
    method: 'put',
    data: data
  })
}

// 删除每天每列统计
export function delRowData(id) {
  return request({
    url: '/coal/rowData/' + id,
    method: 'delete'
  })
}

// 保存数据
export function uploadData(data) {
  return request({
    url: '/coal/rowData/uploadData',
    method: 'post',
    data: data
  })
}

export function rowDataAvgDensity() {
  return request({
    url: '/coal/rowData/avgDensity',
    method: 'get'
  })
}
